<?php

use Biz\service\course\Course as sCourse;
use Doraemon\tools\ActionLog;

class MyListAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $page = $this->getRequest()->getQuery('page', 0);
        $data = sCourse::getMyCourseList($this->uid, $page);
        ActionLog::log($this->uid, [], ActionLog::BIZ_MY_COURSE);
        $this->setSuccess($data);
    }
}